using ComHlp.enums;

namespace ComHlp.ContentClasses
{
    public class ItxServerMessage
    {
        /// <summary> response message type </summary>
        public ItxServerMessageType MessageType { get; set; }

        /// <summary> the server response as string </summary>
        public string Response { get; set; }

        public ItxFileTransferResult FileTransferResult { get; set; }
        public byte[] FileBinaryResponse { get; set; }

        public ItxServerMessage() { }

        /// <summary> constructor when no response is necessary </summary>
        /// <param name="messageType"></param>
        public ItxServerMessage(ItxServerMessageType messageType)
        {
            MessageType = messageType;
        }
    }
}